import request from '@/utils/request'

// 查询入住登记列表
export function listHlregistry(query) {
  return request({
    url: '/hotel/hlregistry/list',
    method: 'get',
    params: query
  })
}

// 查询入住登记详细
export function getHlregistry(id) {
  return request({
    url: '/hotel/hlregistry/' + id,
    method: 'get'
  })
}

// 新增入住登记
export function addHlregistry(data) {
  return request({
    url: '/hotel/hlregistry',
    method: 'post',
    data: data
  })
}

// 修改入住登记
export function updateHlregistry(data) {
  return request({
    url: '/hotel/hlregistry',
    method: 'put',
    data: data
  })
}

// 删除入住登记
export function delHlregistry(id) {
  return request({
    url: '/hotel/hlregistry/' + id,
    method: 'delete'
  })
}
